<?php
namespace Admin\Controller;
use Think\Controller;
class LeavewordManageController extends BaseController {
    public function index(){
    	$this->login_verify();
    	$list=M('leaveword');
        $lwdata=$list->select();
        // var_dump($lwdata);
        $this->assign('lwdata',$lwdata);
        $this->display();
    }

    public function lwDel(){
    	$list=M('leaveword');
    	$id=$_GET['id'];
    	$result=$list->where('Id='.$id)->delete();
    	if ($result) {
    		$this->success("删除成功。",U('LeavewordManage/index'));
    	} else {
    		$this->error("删除失败");
    	}
    	
    }
    
}